package com.yuntsg.nnsfcp.test.pdf.asposepdf.examples.AsposePdfExamples.DocumentObject;

import com.aspose.pdf.Document;
import com.aspose.pdf.DocumentInfo;

public class GetPDFFileInformation {

    public static void main(String[] args) {
        // Open document
        Document pdfDocument = new Document("Original.pdf");
        // Get document information
        DocumentInfo docInfo = pdfDocument.getInfo();
        // Show document information
        System.out.printf("Author:-" + docInfo.getAuthor());
        System.out.printf("\n Creation Date:-" + docInfo.getCreationDate());
        System.out.printf("\n Keywords:-" + docInfo.getKeywords());
        System.out.printf("\n Modify Date:-" + docInfo.getModDate());
        System.out.printf("\n Subject:-" + docInfo.getSubject());
        System.out.printf("\n Title:-" + docInfo.getTitle());

    }

}
